<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>全部数据统计</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <script type="text/javascript" charset="utf-8" src="/static/js/jquery-1.11.3.min.js"></script>
    <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/js/xadmin.js"></script>
    <script type="text/javascript" src="/static/js/jsapi.js"></script>
    <script type="text/javascript" src="/static/js/corechart.js"></script>
    <script type="text/javascript" src="/static/js/jquery.gvChart-1.0.1.min.js"></script>
    <script type="text/javascript" src="/static/js/jquery.ba-resize.min.js"></script>
</head>
<body>
<div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="/admin/welcomepage">首页</a>
        <a href="javascript:window.location.reload();">
          <cite>数据统计 - 全部数据统计</cite>
        </a>
      </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
       href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>
<div class="x-body">
    <blockquote class="layui-elem-quote">注意:当前统计数据来自系统订单,和结算通知的全部数据,包括快捷支付页面和API创建的订单.</blockquote>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>我的账户</legend>
    </fieldset>
    <div class="layui-container">
        <div class="layui-row">
            <div class="layui-col-xs6 layui-col-md6">
                <div class="grid-demo grid-demo-bg1">
                    <table class="layui-table">
                        <tr>
                        <th>用户名:</th>
                        <th>${login_user.user!}</th>
                        </tr>
                        <tr>
                            <th>PID:</th>
                            <th>${login_user.id!}</th>
                        </tr>
                        <tbody>
                        <tr>
                            <td>注册时间:</td>
                            <td>${login_user.cresteTime!,dateFormat='yyyy-MM-dd HH:mm:ss'}</td>
                        </tr>
                        <tr>
                            <td>当前余额:</td>
                            <td>${login_user.balnes!0.00}</td>
                        </tr>
                        <tr>
                            <td>全部收入:</td>
                            <td>${todayInMoney!0.00}元</td>
                        </tr>
                        <tr>
                            <td>退款:</td>
                            <td>${moneyCount3!0.00}元</td>
                        </tr>
                        <tr>
                            <td>全部支出手续费:</td>
                            <td>${todayChangeMoneySett!0.00}元</td>
                        </tr>
                        <tr>
                            <td>全部提现手续费:</td>
                            <td>${todaySettMoney!0.00}元</td>
                        </tr>
                        <tr>
                            <td>已完成提现:</td>
                            <td>${todayWaitSettMoney!0.00}元</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="layui-col-xs6 layui-col-md6 layui-col-space5">
                <div class="grid-demo grid-demo-bg1">
                    <div style="width:500px;margin:0 auto;">
                        <table id='myTable5'>
                            <caption>账户收入比例</caption>
                            <thead>
                            <tr>
                                <th></th>
                                <th>全部收入</th>
                                <th>支出手续费</th>
                                <th>提现手续费</th>
                                <th>退款金额</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td>${todayInMoney!0.00}</td>
                                <td>${todayChangeMoneySett!0.00}</td>
                                <td>${todaySettMoney!0.00}</td>
                                <td>${moneyCount3!0.00}</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>我的订单</legend>
    </fieldset>
    <div class="layui-container">
        <div class="layui-row">
            <div class="layui-col-xs6 layui-col-md6 layui-col-space3">
                <div class="grid-demo grid-demo-bg1">
                    <table class="layui-table">
                        <tr>
                            <th>全部订单:</th>
                            <th>${order1!0}个</th>
                        </tr>
                        <tr>
                            <th>API订单:</th>
                            <th>${order2!0}个</th>
                        </tr>
                        <tbody>
                        <tr>
                            <td>快捷付款页订单:</td>
                            <td>${order3!0}个</td>
                        </tr>
                        <tr>
                            <td>已支付:</td>
                            <td>${order4!0}个</td>
                        </tr>
                        <tr>
                            <td>未支付:</td>
                            <td>${order5!0}个</td>
                        </tr>
                        <tr>
                            <td>已退款:</td>
                            <td>${order9!0}个</td>
                        </tr>
                        <tr>
                            <td>已退款金额:</td>
                            <td>${moneyCount3!0.00}元</td>
                        </tr>
                        <tr>
                            <td>手续费:</td>
                            <td>${order6!0.00}元</td>
                        </tr>
                        <tr>
                            <td>已支付金额:</td>
                            <td>${moneyCount1!0.00}元</td>
                        </tr>
                        <tr>
                            <td>未支付金额:</td>
                            <td>${moneyCount2!0.00}元</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="layui-col-xs6 layui-col-md6 layui-col-space3">
                <div class="grid-demo grid-demo-bg1">
                    <table id='myTable1'>
                        <caption>订单支付比例</caption>
                        <thead>
                        <tr>
                            <th></th>
                            <th>已支付${order4!0}个</th>
                            <th>未支付${order5!0}个</th>
                            <th>交易手续费</th>
                            <th>已退款</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <th>${moneyCount1!0.00 + moneyCount2!0.00 + order6!0.00 + moneyCount3!0.00}</th>
                            <td>${moneyCount1!0.00}</td>
                            <td>${moneyCount2!0.00}</td>
                            <td>${order6!0.00}</td>
                            <td>${moneyCount3!0.00}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>系统结算</legend>
    </fieldset>
    <div class="layui-container">
        <div class="layui-row">
            <div class="layui-col-xs6 layui-col-md6 layui-col-space3">
                <div class="grid-demo grid-demo-bg1">
                    <table class="layui-table">
                        <tr>
                            <th>全部结算:</th>
                            <th>${settCountAll!0}个</th>
                        </tr>
                        <tr>
                            <th>已结算:</th>
                            <th>${settPayOkCount!0}个</th>
                        </tr>
                        <tbody>
                        <tr>
                            <td>未结算:</td>
                            <td>${settPayFaildCount!0}个</td>
                        </tr>
                        <tr>
                            <td>取消结算:</td>
                            <td>${settCanelCount!0}个</td>
                        </tr>
                        <tr>
                            <td>已结算总金额:</td>
                            <td>${money1!0.00}元</td>
                        </tr>
                        <tr>
                            <td>已结算结算手续费:</td>
                            <td>${money2!0.00}元</td>
                        </tr>
                        <tr>
                            <td>取消结算金额:</td>
                            <td>${money3!0.00}元</td>
                        </tr>
                        <tr>
                            <td>取消结算手续费:</td>
                            <td>${money4!0.00}元</td>
                        </tr>
                        <tr>
                            <td>未结算金额:</td>
                            <td>${money5!0.00}元</td>
                        </tr>
                        <tr>
                            <td>未结算手续费:</td>
                            <td>${money6!0.00}元</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="layui-col-xs6 layui-col-md6 layui-col-space3">
                <div class="grid-demo grid-demo-bg1">
                    <table id='myTable2'>
                        <caption>结算比例</caption>
                        <thead>
                        <tr>
                            <th></th>
                            <th>已结算${settPayOkCount!0}个</th>
                            <th>未结算${settPayFaildCount!0}个</th>
                            <th>已取消${settCanelCount!0}个</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <th>${money1!0.00 + money2!0.00 + money3!0.00 + money4!0.00 + money5!0.00 + money6!0.00}</th>
                            <td>${money1!0.00}</td>
                            <td>${money5!0.00}</td>
                            <td>${money3!0.00}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    $(function () {
        layui.use('laydate', function () {
            var laydate = layui.laydate;
            //执行一个laydate实例
            // laydate.render({
            //     elem: '#start' //指定元素
            // });
            // //执行一个laydate实例
            // laydate.render({
            //     elem: '#end' //指定元素
            // });
        });
        gvChartInit();
        $('#myTable5').gvChart({
            chartType: 'PieChart',
            gvSettings: {
                vAxis: {title: 'No of players'},
                hAxis: {title: 'Month'},
                width: 600,
                height: 350
            }
        });

        $('#myTable1').gvChart({
            chartType: 'PieChart',
            gvSettings: {
                vAxis: {title: 'No of players'},
                hAxis: {title: 'Month'},
                width: 600,
                height: 350
            }
        });

        $('#myTable2').gvChart({
            chartType: 'PieChart',
            gvSettings: {
                vAxis: {title: 'No of players'},
                hAxis: {title: 'Month'},
                width: 600,
                height: 350
            }
        });
    });


</script>
</body>
</html>